<%@page language="java"%>
<%@page contentType="text/html"%>
<%@page import="java.util.*, descriptor.*"%>




<jsp:include page="admin_generic_pre.jsp" >
	<jsp:param name="pagesubtitle" value="More about an Academic Supervisor" />
</jsp:include>


	<p>
		<jsp:useBean id="infos" class="java.lang.String" scope="request" />
		<%= infos %>
	</p>
	<p>
		<jsp:useBean id="academicSup" class="descriptor.AcademicSupDescriptor" scope="request" />
		<jsp:useBean id="students" class="descriptor.StudentListDescriptor" scope="request" />
		<p>Academic Supervisor: <a href="admin?action=academicsups_createupdate&id=<%= academicSup.getUserId() %>"><%= academicSup.getFirstName() %> <%= academicSup.getName() %></a></p>
		<p>Department: <%= academicSup.getDepartment()%></p>
		<p>
			Students:
			<p>
			<%if (students.getStudentList().size() == 0){ %>
				There is no student under supervision of <%= academicSup.getFirstName() %> <%= academicSup.getName() %>.
			<%}else{%>
			<ul>
			<%for (StudentDescriptor sd : students.getStudentList()) {%>
				<li><a href="admin?action=students_createupdate&id=<%= sd.getId() %>" ><%= sd.getFirstName()%> <%= sd.getSurName()%></a></li> 
			<%}%>
			</ul>
			<%}%>
			</p>
		</p>
	</p>
	
<jsp:include page="admin_generic_post.jsp" ></jsp:include>		